package com.leo;

import com.almasb.fxgl.app.GameApplication;
import com.almasb.fxgl.app.GameSettings;
import com.almasb.fxgl.dsl.FXGL;
import com.almasb.fxgl.entity.SpawnData;
import com.leo.entity.DialogEntityFactory;

/**
 * @Author: wangss
 * @CreateTime: 2023-06-17  22:59
 * @Description: 对话框
 */
public class DialogApp extends GameApplication {
    @Override
    protected void initSettings(GameSettings settings) {
        // 添加css
        settings.getCSSList().add("test.css");
    }

    @Override
    protected void initGame() {
        FXGL.getGameWorld().addEntityFactory(new DialogEntityFactory());
        FXGL.spawn("rect", new SpawnData(20, 20));
    }

    public static void main(String[] args) {
        launch(args);
    }
}
